package lee.vioson.remotedata.manager

import android.content.Context
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.datastore.preferences.preferencesDataStore

/**
 *Author:viosonlee
 *Date:2023/6/10
 *DESCRIPTION:
 */
val Context.dataStore by preferencesDataStore(name = "app_data_store")
val key_email_login = stringPreferencesKey(name = "email_login")
val key_anonymous_login = stringPreferencesKey(name = "anonymous_login")
val key_init = stringPreferencesKey(name = "init")
fun keyCachedBook(bookId:String,chapterId:String) = stringPreferencesKey(name = "cached_${bookId}_${chapterId}")
